package com.ktjy.service;

import com.ktjy.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImp implements UserService {

    @Autowired
    UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public int addUser(com.ktjy.pojo.User user) {
        //System.out.println(1/0);
        return userDao.addUser(user);
    }

}
